<%@ page contentType="text/html;charset=UTF-8"%>
<%
   String context = jt.classic.system.ISystem.getContextPath();
   
   String serverPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
   
   String retUrl = request.getHeader("Referer"); 
   
   if(retUrl == null){
      retUrl = "";
   }
%> 
<html>
<body>
<form name="form1" method="post" action="">
<input type="hidden" name="retUrl" value="<%=retUrl%>">
<span id="logarea"></span>
</form>
</body>
<script>
   /*刷新index页面*/
   if(top == window){
      document.getElementById("logarea").innerHTML = "<p><font color=\"red\">&nbsp;会话无效，请重新<a href=\"<%=serverPath%><%=context%>/\">登录</a></font></p>";
   }
   /*刷新内嵌页面*/
   else{
      document.form1.action = "<%=context%>/app/renewsession.jsp";
      document.form1.submit(); 
   }
</script>
</html>